package ogmios.components.munches;

import java.io.*;
import ogmios.core.*;

public class SilentContext implements Context
{
 private String cwd;
 public SilentContext(String cwd)
 {
   this.cwd = cwd;
 }
 public void print(String message){}
 public void println(String message){}
 public String getCurrentWorkingDirectory()
 {
   return cwd;
 }

 public void setCurrentWorkingDirectory(String newCurrentWorkingDirectory)
   {
     File cwd = OgmiosUtilities.resolvedFile(newCurrentWorkingDirectory, this.cwd);
     if (cwd.exists() && cwd.isDirectory())
     {
      this.cwd = cwd.getAbsolutePath();
     }
   }
}
